package com.itheima.Test;

import java.util.TreeSet;

public class StudentTree {
    public static void main(String[] args) {
        TreeSet<Student1> ts=new TreeSet<>();
        Student1 stu1=new Student1("zhangsan",90,100,90);
        Student1 stu2=new Student1("wangwu",100,90,90);
        Student1 stu3=new Student1("lisi",80,90,100);
        ts.add(stu1);
        ts.add(stu2);
        ts.add(stu3);
        System.out.println(ts);
    }
}
